package org.kernely.security.ui.group.mgmt;

import org.kernely.ui.mvp.IKernelyView;

import com.vaadin.terminal.Sizeable;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.Component;
import com.vaadin.ui.Panel;
import com.vaadin.ui.VerticalLayout;

public class EditGroupRoleView extends VerticalLayout implements IKernelyView{

	/**
	 * Serial Version ID
	 */
	private static final long serialVersionUID = -2861104036954818820L;

	/**
	 * Panel Containing the list of the roles
	 */
	private Panel roleLayout;

	/**
	 * EditGroupRoleView's constructor
	 */
	public EditGroupRoleView(){
		this.roleLayout = new Panel();

		this.roleLayout.setSizeFull();
		this.roleLayout.setHeight(335, Sizeable.UNITS_PIXELS );
		this.roleLayout.setScrollable(true);
		this.roleLayout.setStyleName(Panel.STYLE_LIGHT);
		this.addComponent(roleLayout);

		//this.setMargin(true, true, true, true);
		this.setSizeFull();
		// Window's size
		this.setComponentAlignment(roleLayout, Alignment.MIDDLE_RIGHT);
		this.setWidth(350, Sizeable.UNITS_PIXELS);
		this.setHeight(335, Sizeable.UNITS_PIXELS);
	}

	/**
	 * @return the roleLayout
	 */
	public final Panel getRoleLayout() {
		return roleLayout;
	}
	
	/**
	 * Useless method.
	 */
	public final Component getComponent() {
		return this;
	}

}
